Holds all the information needed of a sampler used during rendering. More...
Holds all the information needed of a sampler used during rendering.
nkGraphics::Sampler::Sampler | ( | ) |
Constructor. See SamplerManager::createOrRetrieve().
|
virtual |
Destructor. See SamplerManager::erase().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
nkMemory::StringView nkGraphics::Sampler::getFilteringAsString | ( | ) | const |
nkMemory::StringView nkGraphics::Sampler::getAddressModeUAsString | ( | ) | const |
nkMemory::StringView nkGraphics::Sampler::getAddressModeVAsString | ( | ) | const |
nkMemory::StringView nkGraphics::Sampler::getAddressModeWAsString | ( | ) | const |
nkMemory::StringView nkGraphics::Sampler::getComparisonFuncAsString | ( | ) | const |
|
pure virtual |
Sets the border color to use. Border color is used, depending on the addressing mode, when the uvw coordinates go out of [0.0, 1.0].
r | The red component to use, between [0.0, 1.0]. |
g | The green component to use, between [0.0, 1.0]. |
b | The blue component to use, between [0.0, 1.0]. |
a | The alpha component to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The red component value to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The green component value to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The blue component value to use, between [0.0, 1.0]. |
|
pure virtual |
Individual setter for the border color.
value | The alpha component value to use, between [0.0, 1.0]. |
|
pure virtual |
Sets the LOD levels to use.
min | The minimal LOD level to use. |
max | The maximal LOD level to use. |
|
pure virtual |
Sets the maximal anisotropy level to use.
value | The maximal anisotropy level to use. |
|
pure virtual |
Sets the mip bias.
value | The bias to use. |
|
pure virtual |
Sets the filter method.
value | The filtering method to use. |
|
pure virtual |
Sets the address mode.
value | The addres mode to use over the u axis. |
|
pure virtual |
Sets the address mode.
value | The addres mode to use over the v axis. |
|
pure virtual |
Sets the address mode.
value | The addres mode to use over the w axis. |
|
pure virtual |
Sets the comparison function.
value | The comparison function to use. |
|
pure virtual |
Resets the sampler to its default configuration.
void nkGraphics::Sampler::setFilterMethodFromString | ( | const nkMemory::StringView & | value | ) |
Sets the filtering method, from a string.
value | The filtering method to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setAddressModeUFromString | ( | const nkMemory::StringView & | value | ) |
Sets the address mode on axis u from a string.
value | The address mode to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setAddressModeVFromString | ( | const nkMemory::StringView & | value | ) |
Sets the address mode on axis v from a string.
value | The address mode to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setAddressModeWFromString | ( | const nkMemory::StringView & | value | ) |
Sets the address mode on axis w from a string.
value | The address mode to use. Will be translated through StructToString. |
void nkGraphics::Sampler::setComparisonFuncFromString | ( | const nkMemory::StringView & | value | ) |
Sets the comparison function from a string.
value | The comparison function to use. Will be translated through StructToString. |
|
overridevirtual |
Basic exporting capabilities.
rootNode | The tree to export to. |
Implements nkExport::Exportable.
|
overridevirtual |
Basic importing capabilities.
rootNode | The tree to import from. |
Implements nkExport::Exportable.